﻿using System;
using System.ComponentModel.DataAnnotations;

namespace MuXue.Zyiz.Template.Domain.Entity
{
    /// <summary>
    ///【Demo可删除】 订单表
    /// </summary>
    [Serializable]
	public partial class cs_orders
	{
		public cs_orders()
		{}
        #region Model
        private int _id;
        private string _order_no;
        private string _trade_serial_no;
        private int _order_status;
        private string _app_user_id;
        private int? _zyiz_student_id;
        private string _app_student_name;
        private int? _city_id;
        private string _city_name;
        private string _school_code;
        private string _school_name;
        private string _student_grade;
        private string _user_tel;
        private string _payment_channel;
        private decimal _payable_amount;
        private decimal? _real_amount;
        private int _payment_status;
        private DateTime _create_time = DateTime.Now;
        private DateTime? _payment_time;
        private DateTime? _complete_time;
        private DateTime? _update_time;
        private string _update_remark;
        private DateTime? _canel_time;
        private string _canel_case;
        private int? _contract_id;
        /// <summary>
        /// 编号
        /// </summary>
        public int id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 订单编号
        /// </summary>
        public string order_no
        {
            set { _order_no = value; }
            get { return _order_no; }
        }
        /// <summary>
        /// 交易流水号（支付通道返回的）
        /// </summary>
        public string trade_serial_no
        {
            set { _trade_serial_no = value; }
            get { return _trade_serial_no; }
        }
        /// <summary>
        /// 订单状态（0确认订单,1支付成功,2取消订单,3申请退费，4退费成功,100已转化为合同）
        /// </summary>
        public int order_status
        {
            set { _order_status = value; }
            get { return _order_status; }
        }
        /// <summary>
        /// App的用户id
        /// </summary>
        public string app_user_id
        {
            set { _app_user_id = value; }
            get { return _app_user_id; }
        }
        /// <summary>
        /// zyiz系统的学生id
        /// </summary>
        public int? zyiz_student_id
        {
            set { _zyiz_student_id = value; }
            get { return _zyiz_student_id; }
        }

        /// <summary>
        /// zyiz学员编号
        /// </summary>
        public string zyiz_student_code { get; set; } = "";
        /// <summary>
        /// 学生姓名
        /// </summary>
        public string app_student_name
        {
            set { _app_student_name = value; }
            get { return _app_student_name; }
        }

        /// <summary>
        /// 学生性别
        /// </summary>
        public int app_student_sex { get; set; } = 1;

        /// <summary>
        /// 城市
        /// </summary>
        public int? city_id
        {
            set { _city_id = value; }
            get { return _city_id; }
        }
        /// <summary>
        /// 城市名称
        /// </summary>
        public string city_name
        {
            set { _city_name = value; }
            get { return _city_name; }
        }
        /// <summary>
        /// 校区编码
        /// </summary>
        public string school_code
        {
            set { _school_code = value; }
            get { return _school_code; }
        }
        /// <summary>
        /// 校区名称
        /// </summary>
        public string school_name
        {
            set { _school_name = value; }
            get { return _school_name; }
        }
        /// <summary>
        /// 年级
        /// </summary>
        public string student_grade
        {
            set { _student_grade = value; }
            get { return _student_grade; }
        }
        /// <summary>
        /// 用户的电话
        /// </summary>
        public string user_tel
        {
            set { _user_tel = value; }
            get { return _user_tel; }
        }
        /// <summary>
        /// 支付通道
        /// </summary>
        public string payment_channel
        {
            set { _payment_channel = value; }
            get { return _payment_channel; }
        }
        /// <summary>
        /// 应付商品总金额
        /// </summary>
        public decimal payable_amount
        {
            set { _payable_amount = value; }
            get { return _payable_amount; }
        }
        /// <summary>
        /// 实付商品总金额
        /// </summary>
        public decimal? real_amount
        {
            set { _real_amount = value; }
            get { return _real_amount; }
        }
        /// <summary>
        /// 支付状态（0未支付1已支付）
        /// </summary>
        public int payment_status
        {
            set { _payment_status = value; }
            get { return _payment_status; }
        }
        /// <summary>
        /// 创建日期 默认为当前时间
        /// </summary>
        public DateTime create_time
        {
            set { _create_time = value; }
            get { return _create_time; }
        }
        /// <summary>
        /// 实际支付时间
        /// </summary>
        public DateTime? payment_time
        {
            set { _payment_time = value; }
            get { return _payment_time; }
        }
        /// <summary>
        /// 完成时间（发sd消息，zyiz消息完成后）
        /// </summary>
        public DateTime? complete_time
        {
            set { _complete_time = value; }
            get { return _complete_time; }
        }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? update_time
        {
            set { _update_time = value; }
            get { return _update_time; }
        }
        /// <summary>
        /// 更新记录
        /// </summary>
        public string update_remark
        {
            set { _update_remark = value; }
            get { return _update_remark; }
        }
        /// <summary>
        /// 取消订单的时间
        /// </summary>
        public DateTime? canel_time
        {
            set { _canel_time = value; }
            get { return _canel_time; }
        }
        /// <summary>
        /// 取消原因（主动取消，超时系统自动取消）
        /// </summary>
        public string canel_case
        {
            set { _canel_case = value; }
            get { return _canel_case; }
        }
        /// <summary>
        ///zyiz合同id
        /// </summary>
        public int? contract_id
        {
            set { _contract_id = value; }
            get { return _contract_id; }
        }
        #endregion Model

    }
}

